package org.dev.lms.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import org.dev.common.core.entity.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 图书借阅记录
 * </p>
 *
 * @author dean.x.liu
 * @since 2021-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BookBorrow extends TenantEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 读者ID
     */
    private Long readerId;

    /**
     * 读者名称
     */
    private String readerName;

    /**
     * 读者身份证
     */
    private String readerIdCard;

    /**
     * 读者卡号
     */
    private String readerCardNo;

    /**
     * 图书ID
     */
    private Long bookId;

    /**
     * 图书姓名
     */
    private String bookName;

    /**
     * 书本条码
     */
    private String bookBarCode;

    /**
     * 作者
     */
    @TableField(exist = false)
    private String author;

    /**
     * 出版社
     */
    @TableField(exist = false)
    private String publisher;

    /**
     * 分馆ID
     */
    private Long libraryId;

    /**
     * 分馆名称
     */
    private String libraryName;

    /**
     * 开始时间
     */
    private LocalDateTime startDate;

    /**
     * 结束时间
     */
    private LocalDateTime endDate;

    /**
     * 预约记录ID
     */
    private Long subscribeId;

    /**
     * 经办人ID
     */
    private Long adminId;

    @TableField(exist = false)
    private String adminName;


    private String status;

}
